Skip to content

Use PR instead of direct push to main - #1516

Open
dalonsoa wants to merge 4 commits into
mainfrom
allow_push_main
Open

Use PR instead of direct push to main#1516
dalonsoa wants to merge 4 commits into
mainfrom
allow_push_main

Conversation

@dalonsoa

Copy link
Copy Markdown
Collaborator

Description

As there are restriction issues when pushing things to main, now the baseline is added to main via a PR, that needs to be approved and merged.

Mind that as the branch to do the PR from is fixed, if we have multiple PR open, the last one to complete its benchmark run will be the one whose baseline benchmark is considered.

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change to fix an issue)
  • New feature (non-breaking change to add functionality)
  • Refactoring (non-breaking, non-functional change to improve maintainability)
  • Optimization (non-breaking change to speed up the code)
  • Breaking change (whatever its nature)
  • Documentation (improve or add documentation)

Key checklist

  • All tests pass: $ cargo test
  • The documentation builds and looks OK: $ cargo doc
  • Update release notes for the latest release if this PR adds a new feature or fixes a bug
    present in the previous release

Further checks

  • Code is commented, particularly in hard-to-understand areas
  • Tests added that prove fix is effective or that feature works

@codecov

codecov Bot commented Aug 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.47%. Comparing base (5e5c403) to head (3dcbe1a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1516   +/-   ##
=======================================
  Coverage   90.47%   90.47%           
=======================================
  Files          61       61           
  Lines        8899     8899           
  Branches     8899     8899           
=======================================
  Hits         8051     8051           
  Misses        523      523           
  Partials      325      325           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR changes the CI benchmark-baseline update mechanism so that baseline updates on main are proposed via an auto-generated pull request (rather than a direct push), aligning with main-branch push restrictions.

Changes:

  • Replace the “commit & push updated baseline” step with an automated PR created by peter-evans/create-pull-request.
  • Add workflow documentation explaining the fixed PR branch strategy, recursion behaviour, and [skip ci] usage.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/cargo-test.yml
Comment thread .github/workflows/cargo-test.yml Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants